package com.xxxx.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxxx.server.pojo.AdminRole;
import com.xxxx.server.pojo.Role;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhoubin
 * @since 2020-10-15
 */
public interface AdminRoleMapper extends BaseMapper<AdminRole> {

    //通过角色的id查询角色的消息
    List<Role>selectAdminRoleById(Integer id);




    //添加角色
    //int addRoleByAdminId(Integer adminId, Integer rid);
    //删除所有的操作员的id

    int deleteAllrolesByAdminId(Integer adminId);

    int AddRoleByAdminId(Integer id, Integer rid);
}
